package com.powell.health.activity;

import android.app.Activity;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import com.powell.health.dao.HealthManagerDAOContract;
import com.powell.health.dao.sqlhelper.SqlHealthManagerDatabaseHelper;

public class MainActivity extends Activity {

    public final static String EXTRA_MESSAGE = "com.powell.health.activity.MESSAGE";
    public SqlHealthManagerDatabaseHelper databaseHelper;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.fragment_layout);
        HealthManagerDAOContract daoContract = new HealthManagerDAOContract();
        databaseHelper = new SqlHealthManagerDatabaseHelper(this);
        //System.out.println(deleteDatabase("HealthManager.db"));
        SQLiteDatabase sqLiteDatabase = databaseHelper.getWritableDatabase();

      // Object o = this.getActionBar();
    }

//    public void sendMessage(View view) {
//        Intent intent = new Intent(this, DisplayMessageActivity.class);
//        EditText editText = (EditText) findViewById(R.id.edit_message);
//        String message = editText.getText().toString();
//        intent.putExtra(EXTRA_MESSAGE, message);
//        startActivity(intent);
//    }
}
